/*
 * Copyright (C) 2012  E-dance Studio Harbin Institute of Technology 
 * Project:campusmobile
 * Author: 初楷博
 * Create Date: 2012-6-4下午11:58:24
 */
package hit.edance.campusmobile.chat.net;

/**   
 * http请求内容响应接口，分离具体业务和底层接收框架
 * 
 * @Project campusmobile
 * @Package hit.edance.campusmobile.chat.net
 * @interface IDataReceiver
 * @Date 2012-6-4 下午11:58:24
 * @author 初楷博
 * @version 1.0
 * @since 1.0
 */
public interface IDataReceiver {
	/**
	 * 接收信息
	 * @param data 
	 */
	void onDataReceived(Object data);
	
	/**
	 * 接收Exception处理
	 * @param serviceName
	 * @param params
	 * @param exception
	 */
	void onDataReceiveException(String serviceName, String params, Throwable exception);

}
